/**
 * WMS Composables 统一导出
 *
 * 导出所有可复用的业务逻辑Hook
 */

// 表格管理Hook
export { useTable } from "./useTable";

// 表单管理Hook
export { useForm } from "./useForm";

// 权限管理Hook
export {
  usePermission,
  usePermissionGuard,
  WMS_PERMISSION_KEYS,
} from "./usePermission";

// 数据字典Hook
export { useDict, useWmsDict, useStatusDict, WMS_DICT_TYPES } from "./useDict";

// 文件上传Hook
export {
  useUpload,
  useImageUpload,
  useDocumentUpload,
  useExcelImport,
} from "./useUpload";

/**
 * 导出所有Hook类型定义
 */
export type { UseTableOptions, UseTableReturn } from "./useTable";

export type { UseFormOptions, UseFormReturn } from "./useForm";

export type {
  UsePermissionOptions,
  UsePermissionReturn,
} from "./usePermission";

export type { UseDictOptions, UseDictReturn } from "./useDict";

export type { UseUploadOptions, UseUploadReturn } from "./useUpload";

// 参数清理工具Hook
export {
  cleanParams,
  buildSafeUrl,
  buildSafeFormData,
  cleanParamsList,
  deepCleanParams,
  useApiParams,
  safePaginationParams,
  isNullLikeValue,
  PARAM_CLEAN_CONFIGS,
} from "./useParamUtils";

export type { ParamCleanOptions } from "./useParamUtils";
